package system_admin

import (
	"github.com/gin-gonic/gin"
	"server/src/api"
	"server/src/middleware"
)

type SysTemUser struct {
}

func (s *SysTemUser) InitRouter(router *gin.RouterGroup) {
	sysTemAdmin := router.Group("sysTermUser").Use(middleware.UserIsLogin())
	{
		sysTemAdmin.POST("getGroupInfo", api.SysTermUser.GetGroupInfo)             //获取机器人管理信息
		sysTemAdmin.POST("changeUserIntegral", api.SysTermUser.ChangeUserIntegral)      //更改用户积分
		sysTemAdmin.POST("systemUserAudit", api.SysTermUser.SystemAudit)                // 系统审核
		sysTemAdmin.PUT("setVictoryProbability", api.SysTermUser.SetVictoryProbability) // 设置游戏胜利概率
		sysTemAdmin.GET("getVictoryProbability", api.SysTermUser.GetVictoryProbability) // 查看胜利概率
	}
}
